//
//  HttpRequestDelegate.h
//  EZC_Library
//
//  Created by ellzu on 14-9-28.
//  Copyright (c) 2014年 ellzu. All rights reserved.
//

#ifndef __EZC_Library__HttpRequestDelegate__
#define __EZC_Library__HttpRequestDelegate__

#include <stdio.h>

namespace EZHttp {
    
    class HttpRequest;
    
    class HttpRequestDelegate
    {
    public:
        HttpRequestDelegate();
        virtual ~HttpRequestDelegate();
        
        virtual void onHttpRequestStart(HttpRequest *sender);
        virtual void onHttpRequestFinish(HttpRequest *sender);
        
        
        virtual void onHttpRequestResponseHeader(HttpRequest *sender);
        
        virtual void onHttpRequestProgress(HttpRequest *sender);
        
        virtual size_t onHttpRequestReciveContent(HttpRequest *sender,unsigned char* data,size_t dataLen,size_t totalLen);
        
        virtual void onHttpRequestSuccess(HttpRequest *sender);
        virtual void onHttpRequestFail(HttpRequest *sender);
        
        

    };
}

#endif /* defined(__EZC_Library__HttpRequestDelegate__) */
